package com.xr.miniprogram.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xr.miniprogram.domain.MiniProgramStandards;
import com.xr.miniprogram.domain.vo.MiniProgramSearchVO;
import com.xr.miniprogram.domain.vo.MiniProgramStandardsVO;

import java.util.List;

public interface IMiniProgramStandardsService extends IService<MiniProgramStandards> {
    /**
    * description: 根据serviceId获取规格list
    * @author: wls
    * @date: 2023/8/30 16:41
    * @param:
    * @return: list
    */
    List<MiniProgramStandards> getStandardsListByServiceId(Long serviceId);

    /**
    * description: 删除规格
    * @author: wls
    * @date: 2023/8/30 16:42
    * @param:
    * @return:
    */
    boolean deleteStandards(Long serviceStandardsId);


    /**
    * description: 新增服务规格
    * @author: wls
    * @date: 2023/8/30 15:32
    * @param: boolean
    * @return:
    */
    boolean addStandards(MiniProgramStandards MiniProgramStandards);

    /**
    * description: 修改服务规格
    * @author: wls
    * @date: 2023/8/30 15:32
    * @param: boolean
    * @return:
    */
    boolean updateStandards(MiniProgramStandards MiniProgramStandards);


    /**
     * 关键词检索
     * @param keyword
     * @param topic
     * @return
     */
    List<MiniProgramSearchVO> searchAll(String keyword, Long topic);
}
